package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.pojo.Product;
import org.apache.ibatis.annotations.Select;

public interface ProductMapper extends BaseMapper<Product> {
    @Select("select * from product where id = #{id} for update")
    Product selectByIdForUpdate(int i);
}
